import axios from '../utils/http';

// 获取产品分类列表
export async function getCateList(){
    const res=await axios.get('/api/catelist?istree=1');
    if(res.code===200){
        return res.list;
    }
    return false;
}
export async function getCateById(id){
    const res=await axios.get(`/api/cateinfo?id=${id}`)
    if(res.code==200){
        return res.list
    }
    return false
}
